<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>PhysiTrack: D:/physi-tracklast/01/Android/PhysiTrack/src/image/Analyzer.java Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">PhysiTrack
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">D:/physi-tracklast/01/Android/PhysiTrack/src/image/Analyzer.java</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_analyzer_8java.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a><a class="code" href="namespaceimage.html">00001</a> <span class="keyword">package </span>image;
<a name="l00002"></a>00002 
<a name="l00003"></a>00003 
<a name="l00004"></a>00004 <span class="keyword">import</span> process.ImageErrorException;
<a name="l00005"></a>00005 <span class="keyword">import</span> java.util.LinkedList;
<a name="l00006"></a>00006 
<a name="l00008"></a><a class="code" href="classimage_1_1_analyzer.html">00008</a> <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classimage_1_1_analyzer.html">Analyzer</a> {
<a name="l00009"></a>00009 
<a name="l00010"></a><a class="code" href="classimage_1_1_analyzer.html#a941ec3f27677e34535562b7328fca6b5">00010</a>         <span class="keyword">private</span> <a class="code" href="classimage_1_1_physi_object.html">PhysiObject</a> <a class="code" href="classimage_1_1_analyzer.html#a941ec3f27677e34535562b7328fca6b5">object</a>;
<a name="l00011"></a><a class="code" href="classimage_1_1_analyzer.html#abc0e2cc947f7f43f04fc78da67b5b6d8">00011</a>         <span class="keyword">private</span> LinkedList&lt;double[]&gt; <a class="code" href="classimage_1_1_analyzer.html#abc0e2cc947f7f43f04fc78da67b5b6d8">data</a>;
<a name="l00012"></a><a class="code" href="classimage_1_1_analyzer.html#aff579b9558aadc3f01f998d389f092c1">00012</a>         <span class="keyword">private</span> <span class="keywordtype">boolean</span> <a class="code" href="classimage_1_1_analyzer.html#aff579b9558aadc3f01f998d389f092c1">saved</a>;
<a name="l00013"></a><a class="code" href="classimage_1_1_analyzer.html#a0faf92b40d4cdeaf5f89d89b6419dcfc">00013</a>         <span class="keyword">private</span> <span class="keywordtype">double</span> <a class="code" href="classimage_1_1_analyzer.html#a0faf92b40d4cdeaf5f89d89b6419dcfc">sigmaM</a>;
<a name="l00014"></a><a class="code" href="classimage_1_1_analyzer.html#a75b58e7a7f2a71f6cfc1695d7707e27b">00014</a>         <span class="keyword">private</span> <span class="keywordtype">double</span> <a class="code" href="classimage_1_1_analyzer.html#a75b58e7a7f2a71f6cfc1695d7707e27b">sigmaW</a>;
<a name="l00015"></a>00015 
<a name="l00016"></a>00016         <span class="comment">// ! Konstruktor</span>
<a name="l00017"></a><a class="code" href="classimage_1_1_analyzer.html#a70aed530982b3212e76dfe2c1455fcbb">00017</a>         <span class="keyword">public</span> <a class="code" href="classimage_1_1_analyzer.html#a70aed530982b3212e76dfe2c1455fcbb">Analyzer</a>(<span class="keywordtype">double</span> <a class="code" href="classimage_1_1_analyzer.html#a0faf92b40d4cdeaf5f89d89b6419dcfc">sigmaM</a>, <span class="keywordtype">double</span> <a class="code" href="classimage_1_1_analyzer.html#a75b58e7a7f2a71f6cfc1695d7707e27b">sigmaW</a>) {
<a name="l00018"></a>00018                 this.sigmaM = <a class="code" href="classimage_1_1_analyzer.html#a0faf92b40d4cdeaf5f89d89b6419dcfc">sigmaM</a>;
<a name="l00019"></a>00019                 this.sigmaW = <a class="code" href="classimage_1_1_analyzer.html#a75b58e7a7f2a71f6cfc1695d7707e27b">sigmaW</a>;
<a name="l00020"></a>00020                 <span class="keywordtype">object</span> = <span class="keyword">new</span> <a class="code" href="classimage_1_1_physi_object.html">PhysiObject</a>(this.sigmaM, this.sigmaW);
<a name="l00021"></a>00021                 <a class="code" href="classimage_1_1_analyzer.html#abc0e2cc947f7f43f04fc78da67b5b6d8">data</a> = <span class="keyword">new</span> LinkedList&lt;double[]&gt;();
<a name="l00022"></a>00022                 <a class="code" href="classimage_1_1_analyzer.html#aff579b9558aadc3f01f998d389f092c1">saved</a> = <span class="keyword">true</span>;
<a name="l00023"></a>00023         }
<a name="l00024"></a>00024 
<a name="l00025"></a>00025         <span class="comment">// ! Kiserlet inditasa</span>
<a name="l00026"></a><a class="code" href="classimage_1_1_analyzer.html#aeeeded10f0840612115d8d9f0ba6b809">00026</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="classimage_1_1_analyzer.html#aeeeded10f0840612115d8d9f0ba6b809">start</a>() {
<a name="l00027"></a>00027                 <a class="code" href="classimage_1_1_analyzer.html#aff579b9558aadc3f01f998d389f092c1">saved</a> = <span class="keyword">false</span>;
<a name="l00028"></a>00028                 <span class="keywordtype">object</span> = <span class="keyword">new</span> <a class="code" href="classimage_1_1_physi_object.html">PhysiObject</a>(<a class="code" href="classimage_1_1_analyzer.html#a0faf92b40d4cdeaf5f89d89b6419dcfc">sigmaM</a>, <a class="code" href="classimage_1_1_analyzer.html#a75b58e7a7f2a71f6cfc1695d7707e27b">sigmaW</a>);
<a name="l00029"></a>00029         }
<a name="l00030"></a>00030 
<a name="l00031"></a><a class="code" href="classimage_1_1_analyzer.html#af29c9038cf7b1b8e4fefe9a404f57f20">00031</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="classimage_1_1_analyzer.html#af29c9038cf7b1b8e4fefe9a404f57f20">updateFromFrame</a>(<a class="code" href="classimage_1_1_own_image.html">OwnImage</a> img) <span class="keywordflow">throws</span> <a class="code" href="classprocess_1_1_image_error_exception.html">ImageErrorException</a> {
<a name="l00032"></a>00032                 <span class="keywordtype">object</span>.actualize(img);
<a name="l00033"></a>00033                 <a class="code" href="classimage_1_1_analyzer.html#abc0e2cc947f7f43f04fc78da67b5b6d8">data</a>.offer(<span class="keywordtype">object</span>.<a class="code" href="classimage_1_1_analyzer.html#affd3cd5f07d1b70df632d3c16b8fc5b9">getData</a>());
<a name="l00034"></a>00034         }
<a name="l00035"></a>00035 
<a name="l00036"></a>00036         <span class="comment">// ! data visszateritese</span>
<a name="l00037"></a>00037         <span class="comment">/*</span>
<a name="l00038"></a>00038 <span class="comment">         * \return data LinkedList of double</span>
<a name="l00039"></a>00039 <span class="comment">         */</span>
<a name="l00040"></a><a class="code" href="classimage_1_1_analyzer.html#affd3cd5f07d1b70df632d3c16b8fc5b9">00040</a>         <span class="keyword">public</span> LinkedList&lt;double[]&gt; <a class="code" href="classimage_1_1_analyzer.html#affd3cd5f07d1b70df632d3c16b8fc5b9">getData</a>() {
<a name="l00041"></a>00041                 <a class="code" href="classimage_1_1_analyzer.html#aff579b9558aadc3f01f998d389f092c1">saved</a> = <span class="keyword">true</span>;
<a name="l00042"></a>00042                 <span class="keywordflow">return</span> <a class="code" href="classimage_1_1_analyzer.html#abc0e2cc947f7f43f04fc78da67b5b6d8">data</a>;
<a name="l00043"></a>00043         }
<a name="l00044"></a>00044 
<a name="l00045"></a>00045         <span class="comment">// ! PosX visszateritese</span>
<a name="l00046"></a>00046         <span class="comment">/*</span>
<a name="l00047"></a>00047 <span class="comment">         * ! \return int</span>
<a name="l00048"></a>00048 <span class="comment">         */</span>
<a name="l00049"></a><a class="code" href="classimage_1_1_analyzer.html#adbc7acde278cf070168ecd9bbd5507f4">00049</a>         <span class="keyword">public</span> <span class="keywordtype">double</span> <a class="code" href="classimage_1_1_analyzer.html#adbc7acde278cf070168ecd9bbd5507f4">getPosX</a>() {
<a name="l00050"></a>00050                 <span class="keywordflow">return</span> <span class="keywordtype">object</span>.getPosX();
<a name="l00051"></a>00051         }
<a name="l00052"></a>00052 
<a name="l00053"></a>00053         <span class="comment">// ! Posy visszateritese</span>
<a name="l00054"></a>00054         <span class="comment">/*</span>
<a name="l00055"></a>00055 <span class="comment">         * ! \return int</span>
<a name="l00056"></a>00056 <span class="comment">         */</span>
<a name="l00057"></a><a class="code" href="classimage_1_1_analyzer.html#afc25f8aa42f29912e441553d16e6f610">00057</a>         <span class="keyword">public</span> <span class="keywordtype">double</span> <a class="code" href="classimage_1_1_analyzer.html#afc25f8aa42f29912e441553d16e6f610">getPosY</a>() {
<a name="l00058"></a>00058                 <span class="keywordflow">return</span> <span class="keywordtype">object</span>.getPosY();
<a name="l00059"></a>00059         }
<a name="l00060"></a>00060 
<a name="l00061"></a>00061         <span class="comment">// ! sebesseg visszateritese</span>
<a name="l00062"></a>00062         <span class="comment">/*</span>
<a name="l00063"></a>00063 <span class="comment">         * ! \return double</span>
<a name="l00064"></a>00064 <span class="comment">         */</span>
<a name="l00065"></a><a class="code" href="classimage_1_1_analyzer.html#ac87cc2134c9499347b0bed021e818dc3">00065</a>         <span class="keyword">public</span> <span class="keywordtype">double</span> <a class="code" href="classimage_1_1_analyzer.html#ac87cc2134c9499347b0bed021e818dc3">getVelocity</a>() {
<a name="l00066"></a>00066                 <span class="keywordflow">return</span> <span class="keywordtype">object</span>.getVelocity();
<a name="l00067"></a>00067         }
<a name="l00068"></a>00068 
<a name="l00069"></a>00069         <span class="comment">// ! gyorsulas visszateritese</span>
<a name="l00070"></a>00070         <span class="comment">/*</span>
<a name="l00071"></a>00071 <span class="comment">         * ! \return double</span>
<a name="l00072"></a>00072 <span class="comment">         */</span>
<a name="l00073"></a><a class="code" href="classimage_1_1_analyzer.html#ad9dd488e4d2faa246bf94f279f158631">00073</a>         <span class="keyword">public</span> <span class="keywordtype">double</span> <a class="code" href="classimage_1_1_analyzer.html#ad9dd488e4d2faa246bf94f279f158631">getAcceleration</a>() {
<a name="l00074"></a>00074                 <span class="keywordflow">return</span> <span class="keywordtype">object</span>.getAcceleration();
<a name="l00075"></a>00075         }
<a name="l00076"></a>00076         <span class="comment">// ! mentes</span>
<a name="l00077"></a>00077         <span class="comment">/*</span>
<a name="l00078"></a>00078 <span class="comment">         * \return saved</span>
<a name="l00079"></a>00079 <span class="comment">         */</span>
<a name="l00080"></a><a class="code" href="classimage_1_1_analyzer.html#a77aba9d4fdf0e28a0a510fb6661b52aa">00080</a>         <span class="keyword">public</span> <span class="keywordtype">boolean</span> <a class="code" href="classimage_1_1_analyzer.html#a77aba9d4fdf0e28a0a510fb6661b52aa">isSaved</a>() {
<a name="l00081"></a>00081                 <span class="keywordflow">return</span> <a class="code" href="classimage_1_1_analyzer.html#aff579b9558aadc3f01f998d389f092c1">saved</a>;
<a name="l00082"></a>00082         }
<a name="l00083"></a>00083 }
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Fri Jun 8 2012 00:07:22 for PhysiTrack by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
